package org.apache.dolphinscheduler.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author denggh
 * @since 2023-11-13
 */
@Data
@TableName("t_ds_relation_role")
public class RelationRole {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * role id
     */
    private Integer roleId;

    /**
     * target id
     */
    private Integer targetId;

    /**
     * limits of authority
     */
    private Integer perm;

    /**
     * PROJECT/RESOURCE/DATASOURCE/UDFS
     */
    private String targetType;

    /**
     * create time
     */
    private Date createTime;

    /**
     * update time
     */
    private Date updateTime;


}
